package com.yc.hotel.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yc.hotel.dto.UserItemDTO;
import com.yc.hotel.entity.UserItem;
import com.yc.hotel.mapper.IUserItemMapper;
import com.yc.hotel.service.IUserItemService;

@Service
public class UserItemServiceImpl implements IUserItemService{

	@Autowired
	private IUserItemMapper userItemMapper;
	
	@Override
	public List<UserItem> findByUno(int uno) {
		return userItemMapper.findByUno(uno);
	}

	@Override
	public int add(UserItem userItem) {
		return userItemMapper.add(userItem);
	}

	//外部调用
	@Override
	public List<UserItemDTO> findByUnoF(int uno) {
		return userItemMapper.findByUnoF(uno);
	}

	@Override
	public int addF(UserItemDTO userItem) {
		return userItemMapper.addF(userItem);
	}

}
